<?php
namespace Home\Controller;
use Think\Controller;
class WowerController extends Controller {
    public function index(){
        $uid_str = I('uid', '');
        $uid     = intval(think_decrypt($uid_str));
        if (!$uid) {
            $this->error('用户id错误', __APP__);
        }

        $user_info = D('user')->info($uid);
        if (!is_array($user_info)) {
            $this->error('用户信息不存在', __APP__);
        }


        $this->display();
    }

    /**
     * 通过用户id获得用户的drawer
     * @param  [type] $uid 用户id
     * @return [type]
     */
    private function get_user_drawer($uid, $num, $offset, $sort='', $order_type = 'ASC')
    {
        $drawer_list = array();
    }
}